package com.sxl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName students
 */
@TableName(value ="students")
@Data
public class Students implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "name")
    private String name;

    /**
     * 
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 
     */
    @TableField(value = "QQ")
    private String QQ;

    /**
     * 
     */
    @TableField(value = "weixin")
    private String weixin;

    /**
     * 1-已录入未分配|2-已分配咨询师|3-正在跟踪4-跟踪结束（已缴费）5跟踪结束（失败）
     */
    @TableField(value = "stuStatus")
    private Integer stuStatus;

    /**
     * 网络咨询或者咨询经理的id
     */
    @TableField(value = "netpusherId")
    private Integer netpusherId;

    /**
     * 网络咨询或者咨询经理的名字
     */
    @TableField(value = "createUser")
    private String createUser;

    /**
     * 是咨询师的id
     */
    @TableField(value = "askerId")
    private Integer askerId;

    /**
     * 咨询师的name
     */
    @TableField(value = "ziXunName")
    private String ziXunName;

    /**
     * 是否有效--1-有效|0-无效，当删除时吧usValid修改为0
     */
    @TableField(value = "isValid")
    private Integer isValid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private String createTime;

    /**
     * 第一次跟踪时间
     */
    @TableField(value = "firstVisitTime")
    private String firstVisitTime;

    /**
     * 是否付款--1-未付款|0-已付款
     */
    @TableField(value = "isPay")
    private Integer isPay;

    /**
     * 付款时间
     */
    @TableField(value = "payTime")
    private String payTime;

    /**
     * 付款金额
     */
    @TableField(value = "money")
    private String money;


    @TableField(exist = false)
    private int page;

    @TableField(exist = false)
    private int limit;

    public int getPage() {
        return (page-1)*limit;
    }
    /**
     *起止时间
     */
    @TableField(exist = false)
    private String beginTime;

    /**
     *结束时间
     */
    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private Integer userId;

    @TableField(exist = false)
    private String  idStr;

}